package com.tmc.bean.intair;

public class EthBookingResp {

	private boolean success;
	private String message;
	private String pnr;
	private String pnrStatus;

	public EthBookingResp(boolean success, String message, String pnr, String pnrStatus) {
		this.success = success;
		this.message = message;
		this.pnr = pnr;
	}
	
	public EthBookingResp (){
		
	}
	
	public static EthBookingResp makeFail(String message, String pnr, String pnrStatus) {
		return new EthBookingResp(false, message, pnr, pnrStatus);
	}
	
	public static EthBookingResp makeSuccess(String pnr, String pnrStatus) {
		return new EthBookingResp(true, "成功", pnr, pnrStatus);
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getPnr() {
		return pnr;
	}

	public void setPnr(String pnr) {
		this.pnr = pnr;
	}

	public String getPnrStatus() {
		return pnrStatus;
	}

	public void setPnrStatus(String pnrStatus) {
		this.pnrStatus = pnrStatus;
	}
}
